package com.ruoyi.suppliers_zlw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.suppliers_zlw.mapper.ZlwSuppliersMapper;
import com.ruoyi.suppliers_zlw.domain.ZlwSuppliers;
import com.ruoyi.suppliers_zlw.service.IZlwSuppliersService;
import com.ruoyi.common.core.text.Convert;

/**
 * 供应商信息管理系统Service业务层处理
 * 
 * @author zlw
 * @date 2025-06-11
 */
@Service
public class ZlwSuppliersServiceImpl implements IZlwSuppliersService 
{
    @Autowired
    private ZlwSuppliersMapper zlwSuppliersMapper;

    /**
     * 查询供应商信息管理系统
     * 
     * @param supplierId 供应商信息管理系统主键
     * @return 供应商信息管理系统
     */
    @Override
    public ZlwSuppliers selectZlwSuppliersBySupplierId(String supplierId)
    {
        return zlwSuppliersMapper.selectZlwSuppliersBySupplierId(supplierId);
    }

    /**
     * 查询供应商信息管理系统列表
     * 
     * @param zlwSuppliers 供应商信息管理系统
     * @return 供应商信息管理系统
     */
    @Override
    public List<ZlwSuppliers> selectZlwSuppliersList(ZlwSuppliers zlwSuppliers)
    {
        return zlwSuppliersMapper.selectZlwSuppliersList(zlwSuppliers);
    }

    /**
     * 新增供应商信息管理系统
     * 
     * @param zlwSuppliers 供应商信息管理系统
     * @return 结果
     */
    @Override
    public int insertZlwSuppliers(ZlwSuppliers zlwSuppliers)
    {
        return zlwSuppliersMapper.insertZlwSuppliers(zlwSuppliers);
    }

    /**
     * 修改供应商信息管理系统
     * 
     * @param zlwSuppliers 供应商信息管理系统
     * @return 结果
     */
    @Override
    public int updateZlwSuppliers(ZlwSuppliers zlwSuppliers)
    {
        return zlwSuppliersMapper.updateZlwSuppliers(zlwSuppliers);
    }

    /**
     * 批量删除供应商信息管理系统
     * 
     * @param supplierIds 需要删除的供应商信息管理系统主键
     * @return 结果
     */
    @Override
    public int deleteZlwSuppliersBySupplierIds(String supplierIds)
    {
        return zlwSuppliersMapper.deleteZlwSuppliersBySupplierIds(Convert.toStrArray(supplierIds));
    }

    /**
     * 删除供应商信息管理系统信息
     * 
     * @param supplierId 供应商信息管理系统主键
     * @return 结果
     */
    @Override
    public int deleteZlwSuppliersBySupplierId(String supplierId)
    {
        return zlwSuppliersMapper.deleteZlwSuppliersBySupplierId(supplierId);
    }
}
